Week OverviewMon – Fri · 10 hours total

APT, dpkg, Snap — three ways to install software on Ubuntu

Windows users install software by downloading an .exe and clicking through a wizard. Linux has a richer ecosystem: a central package repository with thousands of applications, manual .deb package installation, and sandboxed Snap packages. This week students use all three methods, understand why each exists, and learn how to manage, query, and remove software cleanly.

Week at a glance

Monday
APT & Repositories

apt update/upgrade, apt search/install, inspecting dependencies and source repos

Tuesday
dpkg — Manual Install

Install, query, and purge .deb files manually; compare dpkg vs. apt

Wednesday
Snap Packages

Snap install, channels, confinement — why kmahjongg fails and what that teaches

Thursday
Repo Management

sources.list, PPAs, apt-cache, pinning, apt-mark

Friday
Mini-Assessment 3

Written: package manager comparison. Practical: install/query/remove with all three tools.

⭐ OverTheWire BanditStanding challenge — not assessed

Week 3 target: Levels 7–10

Levels 7–10 are heavily grep, sort, uniq, and strings — the same tools students are using in Lab 2 this week. Level 7 uses grep to find a word in a large file. Level 8 uses sort and uniq to find the only unique line. Level 9 uses strings on a binary file. Level 10 adds base64 decoding. All very achievable this week.

Learning OutcomesBy end of Week 3, students can…
Use APT confidentlyUpdate repos, search, install, remove, and purge packages; read dependency output
Use dpkg for manual installsInstall a .deb file, list installed packages, query file ownership, purge cleanly
Understand SnapInstall and remove Snap packages; explain confinement and why GUI apps may fail in TTY
Read sources.listExplain repository components (main, universe, multiverse), add a PPA safely
Compare all three methodsChoose the right installation method for a given situation and justify the choice
MondayLecture + Lab 4 Part 1 · 2 hrs

APT — the package manager students will use every day

0:00–0:10
Recap
0:10–0:40
Lecture
0:40–1:50
Lab 4 Pt 1
1:50–2:00
Debrief
Instructor note: cowsay + fortune piped together is a good live demo. fortune | cowsay — students who haven't seen pipes yet will be curious. Plant the seed for Week 4.
TuesdayLecture + Lab 4 Part 2 · 2 hrs

dpkg — manual package management when APT isn't enough

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 4 Pt 2
1:50–2:00
Debrief
WednesdayLecture + Lab 4 Part 3 · 2 hrs

Snap — sandboxed packages and why confinement matters

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 4 Pt 3
1:50–2:00
Debrief
Lab note: kmahjongg is a KDE application that requires KDE libraries and the X11 display environment. In a GNOME Ubuntu session the confinement prevents it from accessing the display correctly. This is a real-world limitation worth discussing — it shows students that "install" does not always equal "works".
ThursdayLecture + guided lab · 2 hrs

Repository management — sources.list, PPAs, and apt-cache

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:45
Guided lab
1:45–1:55
Bonus
1:55–2:00
Wrap
FridayMini-Assessment 3 · 2 hrs

Mini-Assessment 3 — Package Management

0:00–0:25
Written
0:25–1:50
Practical
1:50–2:00
Review
TopicWeightFormat
apt/dpkg/snap comparison and use cases20%Written
Repository components and sources.list10%Written
apt update vs. apt upgrade distinction5%Written
Snap confinement explanation5%Written (20% total written)
Find, install, verify, remove via apt25%Practical
Install, query, purge via dpkg25%Practical
Snap search and version comparison10%Practical (70% total practical)

What you need ready before Monday

Lab 4 Parts 1–3 handout printed Dropbox .deb URL confirmed (dropbox.com/install-linux) Internet access verified on VMs Mini-Assessment 3 printed (Friday)
← Week 2 Day 1 Lesson Plan → Week 4 → Course Outline